/*********************
* Author:Dzlua
* QQ:505544956
* time:2016/12/03
*/
#ifndef __EDUI_LUASLIDER_H__
#define __EDUI_LUASLIDER_H__

#include "../../controls/Slider.h"
#include "LuaProgress.h"

#ifdef EDUI_USE_LUAPLUS

EDUI_NAMESPACE_BEGIN

class LuaSlider : public LuaProgress
{
public:
    LuaSlider(Slider* slider);
    virtual ~LuaSlider();
    static void* GetInterface(void* data);
    virtual void Release();
    static void Register(LuaState *L);
public:
    bool SetRect(int x, int y, int w, int h);
    void SetThumbSize(int w, int h);
    int GetThumbSize(LuaState *L);
    int GetThumbRect(LuaState *L);
    int GetBarRect(LuaState *L);
    void SetStep(int step);
    int GetStep();
    bool SetValue(int val);
};

EDUI_NAMESPACE_END

#endif
#endif